package o;

import com.huawei.appgallery.search.api.ISearchActivityProtocol;
import com.huawei.appmarket.service.activitydispatcher.OpenGateway.Param;
import com.huawei.appmarket.service.activitydispatcher.OpenGateway.d;
import java.util.List;

public class efk extends d {
    public boolean ˋ(List<Param> list) {
        return true;
    }

    public fjb ˏ(List<Param> list) {
        if (list == null) {
            return null;
        }
        boolean z = false;
        boolean z2 = false;
        String str = null;
        String str2 = null;
        for (Param param : list) {
            if (param != null) {
                if ("traceId".equals(param.ˋ())) {
                    str2 = param.ˏ();
                } else if ("intentKeyword".equals(param.ˋ())) {
                    str = param.ˏ();
                } else if ("fromMain".equals(param.ˋ())) {
                    z2 = Boolean.parseBoolean(param.ˏ());
                } else if ("isNeedSearch".equals(param.ˋ())) {
                    z = Boolean.parseBoolean(param.ˏ());
                }
            }
        }
        fhz ˋ = fho.ˏ().ˋ("Search");
        if (ˋ == null) {
            return null;
        }
        fjb ˎ = ˋ.ˎ("Search");
        ISearchActivityProtocol iSearchActivityProtocol = (ISearchActivityProtocol) ˎ.ˊ();
        iSearchActivityProtocol.setTraceId(str2);
        iSearchActivityProtocol.setIntentKeyword(str);
        iSearchActivityProtocol.setFromMain(z2);
        iSearchActivityProtocol.setNeedSearch(z);
        iSearchActivityProtocol.setShowDefaultHint(true);
        return ˎ;
    }
}
